#ifndef SHOWDATA_H
#define SHOWDATA_H
#include "global_variable.h"

#include <QMainWindow>

class showData : public QMainWindow
{
    Q_OBJECT
public:
    explicit showData(QWidget *parent = 0);
    void ui_Init();
    void  Readdata(QString);
    void data_process(QString str);
//    void keyPressEvent(QKeyEvent *event);
    void  key_up();
    void  key_down();
    void  key_left();
    void  key_right();
    void connect_init();

    QTextEdit *theTextEdit;
    int flag=1;
    int test_num;
    int pos_start;    //一页结尾
    int pos_lastpage_start;  //一页起始
    QString data_toshow[TotalDataNum];
    int page_num;   //第几页
    int page_LR=0;//左右翻页的标记
    QStringList count_pagenum;  //每页的内容数
    QFile file;
    QString  Toshow;
    QLabel * label_data[24];
    QPushButton *theBtn[8];
    QLabel* theLabel[3];
 QLabel *label_name[4];
    QList <QPushButton * >btnlist_ui;
    bool eventFilter(QObject *watched, QEvent *event);

signals:

public slots:
};

#endif // SHOWDATA_H
